home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / RAND / UNSPLIT / text0606.txt < prev    next >
Encoding:
Text File  |  1997-02-06  |  1.7 KB  |  51 lines

  1.  
  2. On Fri, 5 Jul 1996, Neil Jones-Rodway wrote:
  3. > There is another way of working out when to look up or down - you could 
  4. > centre the horizon at a point somewhere in front of the player. This 
  5. > means you'd look up while approaching the stairs and start to level off 
  6. > when you reach the top.... 
  7. > No pre-processing or special WAD entries needed! Voila!
  8.  
  9. Oh dear.. replying to my own posts... but here it goes anyway:
  10.  
  11. I was thinking about this over the weekend, and there are one or two flaws
  12. with the idea... its not quite as simple as I first thought! (as if
  13. anything ever is!)
  14.  
  15. Problem 1:
  16.  
  17. If the point 10 meters away lies behind a wall, it will be in a different
  18. room, which could be higher or lower than the current room. This would
  19. screw things up a little :) So you'd have to bring the sample point closer
  20. to the player if a wall is in the way...
  21.  
  22. Problem 2:
  23.  
  24. If you only sample 1 point, then the view could jump up and down horribly.
  25. Imagine turning in a room, and scanning past a staircase. The view would
  26. jump up when going past the staircase and back down again afterwards.
  27. Urgh! Also, things such as pedestals would cause a problem - your view
  28. would jump up when you move towards it... Double Urgh!
  29.  
  30. The best way around this is to sample a whole bunch of points in front of
  31. the player, and average the results. I guess it won't make a huge CPU
  32. burden as it only has to be done once per frame....
  33.  
  34. Let me know what you think....
  35.  
  36. Neil.
  37.  
  38. ------------------------------------------------------------------------------
  39. Neil Jones-Rodway                                                  RWTH-Aachen
  40.                                                          E-Mail: nj1@ukc.ac.uk
  41.                   Web Pages: http://www-users.informatik.rwth-aachen.de/~neil/
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.